-- GENERATED SPELL FOR [Koragg] --


function spell0_24247(pUnit, Event) --@Cold Stare,n/a--
pUnit:FullCastSpellOnTarget(43593,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24247', 15289, 1)
end

function spell1_24247(pUnit, Event) --@Mighty Blow,n/a--
pUnit:FullCastSpellOnTarget(43592,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24247', 0, 1)
end

function Sorts_24247(pUnit, Event)
local choix_sorts_24247 = math.random(0, 1)
if choix_sorts_24247 == 0 then
pUnit:RegisterEvent('spell0_24247', 1, 1)
end
if choix_sorts_24247 == 1 then
pUnit:RegisterEvent('spell1_24247', 1, 1)
end
end

function mob24247_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24247', math.random(1500, 3000), 1)
end

function mob24247_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24247_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24247_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24247, 1, 'mob24247_Action')
RegisterUnitEvent(24247, 2, 'mob24247_Leave')
RegisterUnitEvent(24247, 3, 'mob24247_Kill')
RegisterUnitEvent(24247, 4, 'mob24247_Die')
